/**************************************************************************** **
 * Copyright (C) 2001-2020 Inhand Networks, Inc.
 **************************************************************************** **/

/* ************************************************************************** **
 *     MODULE NAME            : system
 *     LANGUAGE               : C
 *     TARGET ENVIRONMENT     : Any
 *     FILE NAME              : assert.h
 *     FIRST CREATION DATE    : 2022/05/09
 * --------------------------------------------------------------------------
 *     Version                : 1.0
 *     Author                 : EExuke
 *     Last Change            : 2022/05/09
 *     FILE DESCRIPTION       : API exported to external moduels
** ************************************************************************** */
#ifndef _ASSERT_H_
#define _ASSERT_H_

#undef assert

#ifdef NDEBUG

#define assert(e)    ((void)0)

#else

#include "except.h"

extern void assert(int e);

#define assert(e)    ((void)((e)||(RAISE(Assert_Failed),0)))

#endif /* NDEBUG */

#endif /* End of _ASSERT_H_ */

